﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using System.Xml.Serialization;

namespace SharedUtils
{
    public class Entity
    {
        public String name { get; set; }
        public bool isVisible { get; set; }
        public Vector2 position { get; set; }
        
        public Entity()
        {
            this.name = string.Empty;
            this.isVisible = true;
            this.position = Vector2.Zero;
        }

        public Entity(String name, Vector2 position)
        {
            this.name = name;
            this.isVisible = true;
            this.position = position;
        }

        public Entity(String name)
        {
            this.name = name;
            this.isVisible = true;
            this.position = new Vector2(0,0);
        }

        // Copy constructor
        public Entity(Entity e)
        {
            this.name = e.name;
            this.isVisible = e.isVisible;
            this.position = e.position;
        }

        public override string ToString()
        {
            return name + " - " + (isVisible ? "Visible" : "Not Visible");
        }
    }
}
